package org.lqq.serverRegisterAndFinder.eureka;

import org.lqq.serverRegisterAndFinder.ServerFinderAndRegister;
import org.lqq.serverRegisterAndFinder.serverFinder.ServerFinder;
import org.lqq.serverRegisterAndFinder.serverRegister.ServerRegister;


/**
 * Created by 李清泉 on 2017/10/26.
 *
 * @remark
 */
public class DefaultServerFinderAndRegister implements ServerFinderAndRegister {


    private ServerFinder serverFinder;

    private ServerRegister serverRegister;


    public DefaultServerFinderAndRegister(ServerFinder serverFinder, ServerRegister serverRegister) {
        this.serverFinder = serverFinder;
        this.serverRegister = serverRegister;
    }

    @Override
    public ServerFinder getServerFinder() {
        return serverFinder;
    }

    @Override
    public ServerRegister getServerRegister() {
        return serverRegister;
    }
}
